//
//  COSUploadConfiguration.swift
//  Center_OSS
//
//  Created by 蒋晨成 on 2022/2/10.
//

import Foundation

public enum DataType: Int {
    case pic = 1
    case video = 2
    case audio = 3
}

public struct COSUploadConfiguration {
    public let secretID: String
    public let secretKey: String
    public let token: String
    public let startDate: Date
    public let expirationDate: Date
    public let regionName: String
    public let bucket: String
    public let prefix: String
    public let paths: [DataType: String]

    public init(secretID: String, secretKey: String, token: String, startDate: Date, expirationDate: Date, regionName: String, bucket: String, prefix: String, paths: [DataType: String]) {
        self.secretID = secretID
        self.secretKey = secretKey
        self.token = token
        self.startDate = startDate
        self.expirationDate = expirationDate
        self.regionName = regionName
        self.bucket = bucket
        self.prefix = prefix
        self.paths = paths
    }
}
